/*
 * @Author: 脉迈
 * @Date: 2022-01-12 15:44:23
 * @LastEditors: 脉迈
 * @LastEditTime: 2022-01-27 11:13:18
 */
module.exports = function(app){
  const {router, $controller} = app;
  router.get('/', $controller.psd.action);
  router.post('/psd', $controller.psd.index);
  // 页面模板

  router.post('/template/create', $controller.template.create);
  router.get('/template/get', $controller.template.getList);
  router.get('/template/detail', $controller.template.getDetail);
  
  
  
  // 页面模块
  router.post('/block/create', $controller.block.create);
  router.get('/block/get', $controller.block.getList);
  router.get('/block/detail', $controller.block.getDetail);

  // 用户模块
  router.post('/user/register', $controller.user.register);
  router.post('/user/login', $controller.user.login);

  // 前端路由
  router.post('/router/get', $controller.routers.getRouters);

  // 公共
  router.post('/common/uploadfile', $controller.common.uploadfile)
  // html2canvas 跨域接口配置
	router.get('/html2canvas/corsproxy', $controller.htmlToCanvas.corsproxy);
}